function o = get_last(p)
% GETS object from the last position of the P 
% FUNCTION O = GET_LAST(P)
%

% Nonlinear Filtering Toolbox version 2.0-rc4
% Copyright (c) 1995 - 2007 NFT developement Team,
%              Department of Cybernetics,
%              University of West Bohemia in Pilsen

p = mv_last(p); % move to previous position
o = p.cont{p.pos}; % return the element
p = mv_next(p); % move back

% CHANGELOG